package com.ssy.lingxi.member.merchant.model.vo.basic.response;


import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 会员注册资料配置内容
 * @author 万宁
 * @version 2.0.0
 * @date 2020-07-14
 */
public class ConfigDetailVO implements Serializable {
    private static final long serialVersionUID = 8137182679194893370L;

    /**
     * 注册资料id
     */
    private Long id;

    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 中文名称
     */
    private String fieldLocalName;

    /**
     * 字段类型
     */
    private String fieldType;

    /**
     * 字段类型附加属性
     */
    private Map<String, Object> attr;

    /**
     * 字段长度
     */
    private Integer fieldLength;

    /**
     * 是否可为空 0-不能为空 1-可以为空
     */
    private Integer fieldEmpty;

    /**
     * 字段顺序
     */
    private Integer fieldOrder;

    /**
     * 帮助信息
     */
    private String fieldRemark;

    /**
     * 枚举标签列表
     */
    private List<ConfigDetailLabelVO> fieldEnum;

    /**
     * 字段校验规则枚举：0-无校验规则，1-邮箱规则，2-手机号码规则，3-身份证规则，4-电话号码规则
     */
    private Integer ruleEnum;

    /**
     * 校验规则的正则表达式
     */
    private String pattern;

    /**
     * 校验错误的提示语
     */
    private String msg;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldLocalName() {
        return fieldLocalName;
    }

    public void setFieldLocalName(String fieldLocalName) {
        this.fieldLocalName = fieldLocalName;
    }

    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public Map<String, Object> getAttr() {
        return attr;
    }

    public void setAttr(Map<String, Object> attr) {
        this.attr = attr;
    }

    public Integer getFieldLength() {
        return fieldLength;
    }

    public void setFieldLength(Integer fieldLength) {
        this.fieldLength = fieldLength;
    }

    public Integer getFieldEmpty() {
        return fieldEmpty;
    }

    public void setFieldEmpty(Integer fieldEmpty) {
        this.fieldEmpty = fieldEmpty;
    }

    public Integer getFieldOrder() {
        return fieldOrder;
    }

    public void setFieldOrder(Integer fieldOrder) {
        this.fieldOrder = fieldOrder;
    }

    public String getFieldRemark() {
        return fieldRemark;
    }

    public void setFieldRemark(String fieldRemark) {
        this.fieldRemark = fieldRemark;
    }

    public List<ConfigDetailLabelVO> getFieldEnum() {
        return fieldEnum;
    }

    public void setFieldEnum(List<ConfigDetailLabelVO> fieldEnum) {
        this.fieldEnum = fieldEnum;
    }

    public Integer getRuleEnum() {
        return ruleEnum;
    }

    public void setRuleEnum(Integer ruleEnum) {
        this.ruleEnum = ruleEnum;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
